import pandas as pd
# 1. 创建Series
s1 = pd.Series([10,20,30,40], index=["a","b","c","d"])
print("=== Series ===")
print(s1, "\n索引：", s1.index, " 值：", s1.values)
# 2. 创建DataFrame
data = {
    "姓名": ["张三","李四","王五","赵六","钱七"],
    "年龄": [18,19,18,20,19],
    "语文成绩": [85,92,78,90,88],
    "数学成绩": [90,85,82,95,86]
}
df = pd.DataFrame(data)
print("\n=== DataFrame ===")
print(df)
print("\n基本信息：\n", df.info())  # 数据类型/非空值